class Dog:
    __height = "2"

    def __init__(self, name, age):
        self._name = name
        self.__height = 22
        self.age = age
        print("构造方法")

    def say(self, hello):
        print("hello", hello)
        # 类方法
        print(f'self._name={self._name,}')

    @property
    def name(self):
        return self._name


dog = Dog("bin", 33)
dog.say(12)
print(dog.name)
print(dog.age)
print()
